
const db = wx.cloud.database().collection("list")


exports.main = async (event, context) => {
  console.log(event)
  try {
    return await db.where({
      _id:event.id
    }).remove()
  } catch(e) {
    console.error(e)
  }
}